package cn.com.dcsgo.library.admin.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 角色枚举类
 *
 * @author Dcsgo
 * @since 2024/9/3 08:26
 */
@Getter
public enum Role {
    USER(1, "普通用户"),
    ADMIN(0, "管理员");

    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;

    Role(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
